home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_5.lha
/
8_5
/
sprintf.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
379b
|
20 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ write the arguments in a formatted manner to a string
include <stdarg.h>
nt sprintf(char *s, const char *fmt, ...)
if (s)
{
va_list ap;
va_start(ap, fmt);
int ret = vsprintf(s, fmt, ap);
va_end(ap);
return ret;
}
return EOF;